package cn.caixiong.org.domain;


import cn.caixiong.basic.domain.BaseDomain;
import cn.caixiong.basic.domain.CreatePassword;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Size;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_employee")//指定表名
@ApiModel(description = "员工对象表")
public class Employee extends BaseDomain implements CreatePassword {

    //用户名
    private String username;
    //邮箱
    private String email;
    //手机号
    private String phone;
    //密码
    @Size(min=3,max=12,message = "请输入3~12位的密码")
    private String password;
    //盐值
    private String salt;
    //密码
    @Transient
    private String comfirmPassword;
    //年龄
    private Integer age;
    //状态 1.正常 0.禁用
    private Integer state;
    //部门id
    private Long departmentId;
    private Long logininfoId;
    //店铺id
    private Long shopId;
    private Long parentId;
    private Long managerId;

}
